<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateHotBanksTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('hot_banks', function (Blueprint $table) {
            $table->increments('id')->comment('主键');
            $table->string('credit_card_name')->default('')->comment('银行名称');
            $table->string('card_img_url')->default('')->comment('银行图片地址');
            $table->string('card_img_url2')->default('')->comment('银行图片地址2');
            $table->text('url')->comment('超链接');
            $table->tinyInteger('status')->default('2')->comment('状态');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('hot_banks');
    }
}
